package day06;

import java.util.Arrays;
import java.util.Comparator;

public class txt12 {
    public static void main(String[] args) {
        Double[]b={6.5,6.8,8.4,7.9};
        Arrays.sort(b, new Comparator<Double>() {
            @Override
            public int compare(Double o1, Double o2) {
                return (int) (o1*10-o2*10);
            }
        });
    }
}
